<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
    // echo 'zhe';
});




















































































Route::group(['middleware'=>'ad_login'],function(){
	//后台首页
	Route::get('/admin','admin\AdminController@index');
	//后台用户操作的的控制器
	Route::controller('/admin/user','admin\UserController');
	//后台管理员路由
	Route::controller('/admin/a_user','admin\A_userController');
	//后台轮播图管理
	Route::controller('/admin/lunbo','admin\LunboController');
	//后台友情链接管理
	Route::controller('/admin/friend','admin\FriendController');
	//后台地址管理
	Route::controller('/admin/address','admin\AddressController');
});

//后台登录页面的路由
Route::controller('/admin/login','admin\LoginController');

//注册控制器
Route::controller('/home/zhuce','home\ZhuceController');
//前台登录页面
Route::controller('/home/login','home\LoginController');
//前台首页
Route::get('/home/sy','home\SyController@index');
//验证码的控制器
Route::get('/code','CodeController@index');